const path = require('path')

module.exports = {
	entry: './src/index.ts',
	devtool:'line-source-map',
	module: {
		rules: [
			{
				test: /\.tsx?$/,
				use:'ts-loader',
				exclude: /node_modules/
			}
		]
	},
	// 解析
	resolve:{
		// 扩展
		extensions: [ '.tsx', '.ts', '.js' ]
	},
	output:{
		filename:'bundle.js',
		path: path.resolve(__dirname, 'dist')
	}
}